package com.dz.service.impl;

import com.dz.bean.student;
import com.dz.dao.studentMapper;
import com.dz.service.IuserInfoLogin;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class IuserInfoLoginImpl implements IuserInfoLogin {
    @Resource
    private studentMapper studentMapper;

    @Override
    public boolean isLogin(student s) {

        boolean isOk =false;
        List<student> list= studentMapper.selectLogin(s);
        if(list.size()>0 && list!=null){
            isOk =true;
        }
        return    isOk;
    }
}
